export default [
  {
    path: '/',
    component: () => import(/* webpackChunkName: "common" */ '@/views/home/index'),
    children: [
      {
        path: 'home/:id',
        redirect: 'home/:id/info'
      },
      {
        path: 'home/:id/info',
        component: () => import(/* webpackChunkName: "common" */ '@/views/home/train/index'),
        children: [
          {
            path: '',
            name: 'TrainDetail',
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/train/detail')
          },
          {
            path: 'enter',
            name: 'TrainEnter',
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/train/enter')
          },
          {
            path: 'logistics',
            name: 'TrainLogistics',
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/train/logistics')
          }
        ]
      },
      {
        path: '*',
        component: () => import(/* webpackChunkName: "common" */ '@/views/common/404')
      }
    ]
  }
];
